package com.didispace.chapter11.mapper

import com.didispace.chapter11.domain.User
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * @author 田桂森 2020/7/24 0024
 */
interface UserMapper {
    fun findByName(@Param("name") name: String): User
    fun insert(@Param("name") name: String, @Param("age") age: Int): Int
}